package com.cn.action;

import com.cn.dao.DepartmentDao;
import com.cn.dao.DoctorDao;
import com.cn.dao.TiJianXiangmuDao;
import com.cn.entity.Department;
import com.cn.entity.Doctor;
import com.cn.entity.TiJianxiangmu;
import com.opensymphony.xwork2.Action;

public class XiangmuDeleteAction implements Action{

     int xiangmuid;
     
	

	public int getXiangmuid() {
		return xiangmuid;
	}



	public void setXiangmuid(int xiangmuid) {
		this.xiangmuid = xiangmuid;
	}



	@Override
	public String execute() throws Exception {
		// TODO Auto-generated method stub
		
		TiJianXiangmuDao xmd=new TiJianXiangmuDao();
		TiJianxiangmu xiangmu=xmd.scanOne(xiangmuid);
		xmd.delete(xiangmu);
		
		
		return "success";
	}
	
	
	
	
	
}
